package cc.cix.hq.common.core.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author cix
 */
@Data
@ApiModel(value = "QueryRequest对象", discriminator = "查询条件")
public class QueryRequest implements Serializable {

    private static final long serialVersionUID = -4869594085374385813L;

    @ApiModelProperty("当前页面数据量，默认10")
    private int pageSize = 10;

    @ApiModelProperty("当前页码，默认1")
    private int pageNum = 1;

    @ApiModelProperty("排序字段，默认createTime")
    private String sortField;

    @ApiModelProperty("排序规则（asc升序，desc降序），默认降序")
    private String order;

    @ApiModelProperty("时间范围过滤字段，默认createTime")
    private String filterField;

    @ApiModelProperty("开始时间")
    private String startTime;

    @ApiModelProperty("结束时间")
    private String endTime;

}
